package com.kun.util.excel;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateTypeHandle implements ExcelTypeHandle {
    @Override
    public Object dataProcessing(Object value) {
        if (value != null && value instanceof Date) {
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            return sdf.format(value);
        }

        return value;
    }
}
